home *** CD-ROM | disk | FTP | other *** search
/ Teach Your Children: Road Construction Ahead / Teach Your Children: Road Construction Ahead.iso / pc / rca / road.dxr / 00046_TNTscoreScript.ls < prev    next >
Encoding:
Text File  |  1996-07-17  |  776 b   |  27 lines

  1. on exitFrame
  2.   global gSimObject, gTruckObject, gLevelObject
  3.   puppetPalette(0)
  4.   if the demoFlag of gSimObject = 1 then
  5.     startTimer()
  6.     set the tileNum of the blockedCellObj of gTruckObject to 0
  7.     set the tileType of the blockedCellObj of gTruckObject to #BG
  8.     set x to blockCrossings(the cell of gTruckObject, getLast(the recordedMoveList of gSimObject))
  9.     repeat while the timer < 5
  10.     end repeat
  11.     explode(2)
  12.     clearAllActors()
  13.     puppetPalette("MainPal")
  14.     go("Grass")
  15.     go(the frame + 1)
  16.     puppetPalette("SimPal", 60)
  17.     updateStage()
  18.     puppetPalette(0)
  19.     predrawSimButtons(gSimObject)
  20.     go(label("Simulator" & string(the level of gLevelObject)))
  21.     createGlobalButtons(gSimObject)
  22.   else
  23.     updateActors()
  24.     go(the frame)
  25.   end if
  26. end
  27.